//
//  LCBLayoutButton.h
//  LCBButton
//
//  Created by Administrator on 2017/6/28.
//  Copyright © 2017年 linchuanbin. All rights reserved.
//

/**
  优先布局title
 */

#import <UIKit/UIKit.h>
@class LCBLayoutButton;

typedef NS_ENUM(NSInteger , LCBRelayoutButtonType){
    LCBRelayoutButtonTypeNomal = 0,         //默认
    LCBRelayoutButtonTypeLeft  = 1,         //标题在左
    LCBRelayoutButtonTypeRight = 2,         //标题在右
    LCBRelayoutButtonTypeTop   = 3,         //标题在上
    LCBRelayoutButtonTypeBottom= 4,         //标题在下
    LCBRelayoutButtonTypeNo    = 5,         //无标题 图片填充
    LCBRelayoutButtonTypeYse   = 6,         //有标题 无图片
    LCBRelayoutButtonTypeNoFill= 7,         //无标题 图片不填充
    LCBRelayoutButtonTypeNoFillLeftclearance= 8,         //无标题 图片不填充 左间隙
    LCBRelayoutButtonTypeNoFillRightclearance= 9,         //无标题 图片不填充 右间隙
    LCBRelayoutButtonTypeRed,               // 好点
};

typedef NS_ENUM(NSInteger , LCBaddButtonType){
    LCBaddButtonTypeAdd = 0,            //可以添加
    LCBaddButtonTypeNomal = 1,         //添加完成
    LCBaddButtonTypeDelete = 2,         //可以删除
    LCBaddButtonTypeUseless = 4,               //无用状态
};


@interface LCBLayoutButton : UIButton

@property (nonatomic,strong)LCBLayoutButton * addButton;


@property (assign,nonatomic)IBInspectable LCBaddButtonType lcbAddType;
///图片大小
@property (assign,nonatomic)IBInspectable CGSize imageSize;

//开始title布局
@property (assign,nonatomic)IBInspectable UIEdgeInsets openEdgeInsets;
//  数据
@property (nonatomic ,strong)NSDictionary * dataDict;

@property (nonatomic ,strong)NSString * appId;



//  数据
@property (nonatomic ,strong)id lcbButtondata;


//image或title和边缘的间隙
@property (assign,nonatomic)IBInspectable CGFloat clearance;


@property (assign,nonatomic)IBInspectable LCBRelayoutButtonType lcbRelayoutType;

@end
